﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="first7.aspx.cs" Inherits="Page_example_first7" %>








<!DOCTYPE html>

<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no" />
        
        
        
		
		
        
		
		
			<title>我的预约挂号</title>
		
		
		
		
		
		<link rel="stylesheet" type="text/css" href="http://wx.witontek.com:80/eHospital/page_mobile/service/9.28/css/reset.css">
		<link rel="stylesheet" type="text/css" href="http://wx.witontek.com:80/eHospital/page_mobile/service/9.28/css/ylt_common.css"/>
        <style type="text/css">
        	body{background: #fff;}
        	.appoint_footer{padding: 6% 8%;}
        	#cancel_appoint{margin-right: 10%;}
        	.er_wp{padding: 8% 6% 3%;}
        </style>
	</head>
	<body>
		
		
		
		<header class="appoint_header f-flex f-alignC">
			
			
				
				
				
				
					<img class="appoint_icon" src="http://wx.witontek.com:80/eHospital/page_mobile/service/9.28/images/qxyy.png"/>
					<div class="tips_con f-flex1">
						<h5 class="appointment_status">取消成功!</h5>
						<p class="appointment_tips">
							您已成功取消挂号，如有疑问，请联系客服。
						</p>
					</div>
				
				
				
				
				
				
			
		</header>
		<div class="appoint_body">
				
			
				<h3 class="list_head">
					<p class="">挂号信息</p>
				</h3>
				<ul class="list_body">
					<li class="f-flex">
						<span class="item_name">就诊时间</span>
						<span class="item_info f-flex1 f_orange">2017-02-06 星期一 下午</span>
					</li>
					
						<li class="f-flex">
							<span class="item_name">取号地点</span>
							<span class="item_info f-flex1 f_orange">门诊挂号处<b class="f_gray">(携带身份证取号)</b></span>
						</li>
					
					<li class="f-flex">
						<span class="item_name">
						
						
						就诊地点
						
						</span>
						<span class="item_info f-flex1 f_orange">门诊五楼西</span>
					</li>
					<li class="f-flex">
						<span class="item_name">科室</span>
						<span class="item_info f-flex1">儿科门诊</span>
					</li>
					
					
					<li class="f-flex">
						<span class="item_name">门诊类型</span>
						<span class="item_info f-flex1">专家门诊 顾仰虹</span>
					</li>
					
					<li class="f-flex">
						<span class="item_name">状态</span>
						<span class="item_info f-flex1">
						
							
							
							
							
								已取消
							
							
							
							
							
							
							
						
						</span>
					</li>
					<li class="f-flex">
						<span class="item_name">就诊人</span>
						<span class="item_info f-flex1 f_orange">信息测试</span>
					</li>
					
					<li class="f-flex">
						<span class="item_name">就诊卡号</span>
						<span class="item_info f-flex1 f_orange">0012145082</span>
					</li>
					
					<li class="f-flex">
						<span class="item_name">挂号费</span>
						<span class="item_info f-flex1 f_orange">15.0元</span>
					</li>
					
					<li class="f-flex">
						<span class="item_name">提交时间</span>
						<span class="item_info f-flex1">2017-02-06 16:01:26</span>
					</li>
				</ul>
			
		</div>
		
		<div class="er_wp">
			<section id="bcTarget" style="margin:auto;background-color: #FFFFFF;"></section>
		</div>
		
		<div class="appoint_footer f-flex">
			
			
			
			
			
			
		</div>
		
		
		﻿

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no" />
        <style type="text/css">
			#footclass2{
				width: 100%;margin-left: auto;margin-right: auto;padding:10px 0 5px;bottom: 3px;
			}
			#footclass2>p{display: inline-block; width: 100%;color: #989898; text-align: center;  font-size: 14px; font-family: "microsoft yahei"}
        </style>
	</head>
	<body>
		
		
		
		
		<footer id="footclass2">
			<p>技术支持：睿博科技</p>
		</footer>
		

		<script type="text/javascript">
			
			
			
			function toFixFoot(){
				
			    var footEnd = document.getElementById("footclass2");
			    	footEnd.style.position = 'static';
//			    _window=window.screen.height;

			    var clientH = document.documentElement.clientHeight;
			    var bodyH = document.getElementsByTagName('body')[0].offsetHeight;
//			   alert('clientH'+clientH)
//			   alert('bodyH'+bodyH)
			   if(bodyH<=clientH){ //如果body高度小于视口高度,则页脚绝对定位
			    	footEnd.style.position = 'fixed';
			    	footEnd.style.bottom = '0px';
			    	
			    }else{
			    	footEnd.style.position = 'static';
			    	
			    	
			    }
			};
			
			window.onload = function(){
				toFixFoot();
			};
			
			window.onresize = function(){
//				toFixFoot();
				setTimeout(toFixFoot,100)
			};
			
			window.onclick=function(){
				toFixFoot();
			}
			
		</script>
	</body>
</html>
		
	</body>
	<script src="http://wx.witontek.com:80/eHospital/page_mobile/service/9.28/js/jquery-1.10.2.min.js"></script>
	<script src="http://wx.witontek.com:80/eHospital/page_mobile/assets/js/YLT.mobile.public.js"></script>
	<script src="http://wx.witontek.com:80/eHospital/page_mobile/assets/js/YLT.mobile.autoMsg.js"></script>
	<script src="http://wx.witontek.com:80/eHospital/js/barcode/jquery-barcode.js"></script>
	<script type="text/javascript">
		$('.j_cancel').click(function(){
			if(confirm('您确定要取消此次预约吗？')){
				window.location.href = '/eHospital/weixin/subscriptionWx_subscriptionUpdate.action?subscription.subscriptionId=4e52c2c04aaa4cfa89e3884e52bee2b9&subscription.status=3&type=2'; 
			}
		});
		function gotoRegister(date, id,ifRegisVisual){
			if(ifRegisVisual != '1'){
				var clinicTime = '2017-02-10'+' 星期五'+' 上午 ';
				var msg = '您好！请于'+clinicTime+'在我的预约挂号记录中进行挂号操作!';
				alert(msg);
				return ;
			}
			$.ajax({
				url : "/eHospital/weixin/subscriptionWx_checkSubRegDate.action",
				type :"post",
				dataType : "json",
				async : false,
				data : "subscription.subscriptionId="+id+"&subscription.registrationDate="+date,
				
				success : function(json){
					if(json.status){
						if ("专家门诊" == "专家门诊") {
							window.location.href = "/eHospital/weixin/appointmentWx_doctorSubReg.action?regType=subReg&patients.patientId=aabf201e44a14d2298ea8115f69689c0&subscription.subscriptionId="+id; 
						} else {
							window.location.href = "/eHospital/weixin/appointmentWx_departmentSubReg.action?regType=subReg&patients.patientId=aabf201e44a14d2298ea8115f69689c0&subscription.subscriptionId="+id;
						}
					}else{
						alert(json.msg);
					}
				},
						
				error:function(xhr, textStatus, errorThrown){
					alert("系统错误!");
				}
			});
		}
		function gotoPay(){
			window.location.href = "http://wx.witontek.com:80/eHospital/weixin/wechatPay_insertOrderBeforePay.action?id=8c6e2bb12ba34b989c56c493001a0b9d&type=register";
		}
		// 取消挂号
		function cancelReg(status) {
			var regStatus = "";
			if (status == '1') {
				regStatus = "3";
			} else if (status == '2') {
				regStatsu = "4";
			}
			window.location.href = "http://wx.witontek.com:80/eHospital//weixin/wechatRegist_updateRegistStatus.action?register.registerId=8c6e2bb12ba34b989c56c493001a0b9d&type=4&register.regStatus="+regStatus;
			
		}
		
		function  applyRefund(id){
			$.ajax({
				url : "/eHospital/weixin/subscriptionWx_applyRefundSub.action",
				type :"post",
				dataType : "text",
				async : false,
				timeout:15000, 
				data : "subscription.subscriptionId="+id,
				
				success : function(data){
					var result = data.trim();
					if("SUCCESS"==result){
						alert("退款申请成功");
						window.location.href  = "/eHospital/weixin/subscriptionWx_subscriptionDetailForDoctor.action?type=3&subscription.subscriptionId="+id;
					}else{
						if(''==result){
							alert("退款申请失败");
						}else{
							alert(result);
						}
					}
				},
						
				error:function(xhr, textStatus, errorThrown){
					alert("系统错误!");
				}
			});
		}
		function barcodeProduct(i){
			var card="";
			if("0012145082" !=null &&"0012145082" !=""){
				card="0012145082";
			}else if("0012145082" !=null &&"0012145082" !=""){
				card="0012145082";
			}
			$("#bcTarget").empty().barcode(card, "code128",{barWidth:i, barHeight:60,showHRI:false });
		}
		
		$().ready(function(){
			var i=5;
			do{
				barcodeProduct(--i);
			}while($("#bcTarget").width()>$("body").width());
		});
	</script>
</html>
